import cookie from './cookie'

const getToken = () => cookie.get('token')
const getRole = () => cookie.get('role')
const isLogin = () => !!getToken()
const removerUser = () => {
  cookie.remove("token")
  cookie.remove("role")
  cookie.remove("userInfo")
  cookie.remove("user")
}

export {
  getToken,
  isLogin,
  removerUser,
  getRole
}